package com.cetc.sdp.kmga.cs.audit;

import java.io.Serializable;
import java.time.DayOfWeek;
import java.time.LocalTime;
import java.util.List;
import java.util.Set;

/**
 * @description:
 * @author： DengQiang
 * @date: 2017/8/28 17:12
 */
public class AuditRuleCondition implements Serializable {

    /**
     * 条件id
     */
    private String id;

    /**
     * 规则id
     */
    private Integer ruleId;

    /**
     * ip集合id
     */
    private Integer ipSetId;

    /**
     * ip集合
     */
    private List<IPSet> ipSets;

    /**
     * ip比较模式
     */
    private Integer ipsetCmp;

    /**
     * 每周
     */
    private Set<DayOfWeek> weekDays;

    /**
     * 每天开始时间
     */
    private LocalTime dayStart;

    /**
     * 每天结束时间
     */
    private LocalTime dayEnd;

    /**
     * 操作类型
     */
    private Set<String> operationType;


    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public Integer getRuleId() {
        return ruleId;
    }

    public void setRuleId(Integer ruleId) {
        this.ruleId = ruleId;
    }

    public Integer getIpSetId() {
        return ipSetId;
    }

    public void setIpSetId(Integer ipSetId) {
        this.ipSetId = ipSetId;
    }

    public List<IPSet> getIpSet() {
        return ipSets;
    }

    public void setIpSets(List<IPSet> ipSets) {
        this.ipSets = ipSets;
    }

    public Integer getIpsetCmp() {
        return ipsetCmp;
    }

    public void setIpsetCmp(Integer ipsetCmp) {
        this.ipsetCmp = ipsetCmp;
    }

    public Set<DayOfWeek> getWeekDays() {
        return weekDays;
    }

    public void setWeekDays(Set<DayOfWeek> weekDays) {
        this.weekDays = weekDays;
    }

    public LocalTime getDayStart() {
        return dayStart;
    }

    public void setDayStart(LocalTime dayStart) {
        this.dayStart = dayStart;
    }

    public LocalTime getDayEnd() {
        return dayEnd;
    }

    public void setDayEnd(LocalTime dayEnd) {
        this.dayEnd = dayEnd;
    }

    public Set<String> getOperationType() {
        return operationType;
    }

    public void setOperationType(Set<String> operationType) {
        this.operationType = operationType;
    }
}
